#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>

#define SERVER_FIFO_NAME "../FIFOs/FIFO_TRANSACTIONS"
#define CLIENT_FIFO_NAME "../FIFOs/FIFO_%i"
#define FIFO_NAME_SIZE 100
#define MESSAGE_SIZE 300

#define TRUE 1
#define FALSE 0

//#######################################
//#
//# Definition des structures
//#
struct Info_FIFO_Transaction
{				
	int pid_client; 		
	char transaction[300];				
};

struct Server_Response
{				
	int lastMessage; 		
	char message[MESSAGE_SIZE];					
};

int createFifoClient(unsigned int pid, char clientFifoName[FIFO_NAME_SIZE]);
void Mkfifo(const char *path, mode_t mode);



